﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharp.Programs.Mirrorer.Model
{
    #region eventhandling stuff
    #endregion


    /// <summary>
    /// creates an ActionObject
    /// </summary>
    class Watcher
    {
        #region declarations
        private FileSystemWatcher _fsw;
        #endregion



        #region constructor
        public Watcher()
        {
            _fsw = new FileSystemWatcher();
        }
        #endregion



        #region private functions
        #endregion



        #region methods
        #endregion



        #region properties
        public string Path
        {
            get
            {
                return _fsw.Path;
            }
            set
            {
                if (_fsw.EnableRaisingEvents) { }
                if (Directory.Exists(value)) { }
                if (File.Exists(value)) { }
                _fsw.Path = value;
            }
        }
        #endregion
    }
}
